<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="index.css">
</head>
<body>
    <div class="cart">
        <h1>购物车</h1>
        <table>
            <thead>
                <tr>
                    <th>商品图片</th>
                    <th>商品名称</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>小计</th>
                </tr>
            </thead>
            <tbody id="cartItems">
                <!-- 商品项将动态生成 -->
            </tbody>
        </table>
        <p>总价格: <span id="totalPrice">0</span></p>
    </div>

    <script src="index.js"></script>
</body>
</html>